/* 中国股票分析系统 - 自定义样式 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 渐变背景 */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 卡片样式 */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* 信号徽章 */
.signal-badge {
    font-size: 0.8em;
    font-weight: bold;
    padding: 0.3em 0.6em;
    border-radius: 12px;
}

.signal-buy {
    background-color: #28a745;
    color: white;
}

.signal-sell {
    background-color: #dc3545;
    color: white;
}

.signal-hold {
    background-color: #6c757d;
    color: white;
}

/* 按钮样式 */
.analysis-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.analysis-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b4db1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 置信度进度条 */
.confidence-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* 加载动画 */
.loading {
    display: none;
}

.loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 策略卡片 */
.strategy-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.strategy-card:hover {
    transform: translateY(-3px);
    border-left-color: #667eea;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 表格样式 */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.stock-row {
    transition: background-color 0.2s ease;
}

.stock-row:hover {
    background-color: #f8f9fa;
}

/* 综合评分 */
.consensus-score {
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 模态框优化 */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

/* 统计数字 */
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* 滚动条优化 */
.table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-success {
    background-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
}

.status-warning {
    background-color: #ffc107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

.status-danger {
    background-color: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

/* 时间戳样式 */
.timestamp {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: normal;
}

/* 面包屑导航 */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 筛选按钮组 */
.filter-buttons .btn {
    transition: all 0.2s ease;
}

.filter-buttons .btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 数据加载状态 */
.data-loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.data-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 工具提示增强 */
.tooltip {
    font-size: 0.875rem;
}

/* 成功/错误提示 */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #b8daff);
    color: #0c5460;
}